package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;
import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/4 15:55
 * @Version 1.0
 */

public class BatchFlow extends BasePojo {

    /**
     * 批次流程工序ID
     */
    private Integer batchFlowId;
    /**
     * 批次ID
     */
    private Integer batchId;
    /**
     * 批次编号
     */
    private String batchCode;
    /**
     * 工序ID
     */
    private Integer proId;
    /**
     * 工位ID
     */
    private Integer stationId;
    /**
     * 班次ID
     */
    private Integer classeId;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 是否并序
     */
    private Integer sequence;
    /**
     * 序号
     */
    private Integer serialNum;
    /**
     * 上工序
     */
    private String risePro;
    /**
     * 下工序
     */
    private String nextPro;
    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 说明
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;

    private Integer finishStateId;

    /*                                                  新增字段                                                          */

    /**
     * 工序名称
     */
    private String proName;
    /**
     * 工序类型名称
     */
    private String proTypeName;
    /**
     * 工位编号
     */
    private String stationCode;
    /**
     * 工位名称
     */
    private String stationName;
    /**
     * 作业员
     */
    private String userName;
    /**
     * 批次流程工位集合
     */
    private List<BatchStation> batchStationList;
    /**
     * 批次流程采集参数集合
     */
    private List<BatchDete> batchDeteList;
    /**
     * 批次流程物料集合
     */
    private List<BatchBom> batchBomList;
    /**
     * 批次流程不良现象集合
     */
    private List<BatchBadpheno> batchBadphenoList;

    public Integer getBatchFlowId() {
        return batchFlowId;
    }

    public void setBatchFlowId(Integer batchFlowId) {
        this.batchFlowId = batchFlowId;
    }

    public Integer getBatchId() {
        return batchId;
    }

    public void setBatchId(Integer batchId) {
        this.batchId = batchId;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode == null ? null : batchCode.trim().replace(" ","");
    }

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public Integer getStationId() {
        return stationId;
    }

    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }

    public Integer getClasseId() {
        return classeId;
    }

    public void setClasseId(Integer classeId) {
        this.classeId = classeId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Integer getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(Integer serialNum) {
        this.serialNum = serialNum;
    }

    public String getRisePro() {
        return risePro;
    }

    public void setRisePro(String risePro) {
        this.risePro = risePro == null ? null : risePro.trim().replace(" ","");
    }

    public String getNextPro() {
        return nextPro;
    }

    public void setNextPro(String nextPro) {
        this.nextPro = nextPro == null ? null : nextPro.trim().replace(" ","");
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProTypeName() {
        return proTypeName;
    }

    public void setProTypeName(String proTypeName) {
        this.proTypeName = proTypeName;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public List<BatchStation> getBatchStationList() {
        return batchStationList;
    }

    public void setBatchStationList(List<BatchStation> batchStationList) {
        this.batchStationList = batchStationList;
    }

    public List<BatchDete> getBatchDeteList() {
        return batchDeteList;
    }

    public void setBatchDeteList(List<BatchDete> batchDeteList) {
        this.batchDeteList = batchDeteList;
    }

    public List<BatchBom> getBatchBomList() {
        return batchBomList;
    }

    public void setBatchBomList(List<BatchBom> batchBomList) {
        this.batchBomList = batchBomList;
    }

    public List<BatchBadpheno> getBatchBadphenoList() {
        return batchBadphenoList;
    }

    public void setBatchBadphenoList(List<BatchBadpheno> batchBadphenoList) {
        this.batchBadphenoList = batchBadphenoList;
    }

  public Integer getFinishStateId() {
    return finishStateId;
  }

  public void setFinishStateId(Integer finishStateId) {
    this.finishStateId = finishStateId;
  }
}
